# -*- coding: utf-8 -*-
from src.game.entity.projectile import EntityProjectile
from src.game.entity.living import EntityLiving

class EntityRocket(EntityProjectile):

    name="entityrocket"

    def __init__(self):
        EntityProjectile.__init__(self)
        self.collision = True
        self.width = 0.7
        self.height = 0.7

    def onCollision(self, entity):
        if isinstance(entity, EntityLiving):
            entity.damage(1, EntityRocket.name, 5)